{if $set_region!=1}
<p><b style='color:red'>{$smarty.const.LA_ADMIN_REGIONS_DISABLED}</b></p>
{/if}

<p class="bg">{$smarty.const.LA_ADMIN_REGIONS_ADMIN}</p>

<form name="new_region_form" id="new_region_form" method="post" action="adm_regions.php">


<input type="text" id="region_name" name="region_name" style="height:18px;font-size:14px;" />&nbsp;
<select name="catid" style="height:22px;font-size:13px;">{$options}</select>&nbsp;<input type="submit" name="add" value="{$smarty.const.LA_ADMIN_REGIONS_ADD}" style="font-size:14px;background-color:white;border:1px solid black;" />

&nbsp;<input type="submit" name="edit" value="{$smarty.const.LA_ADMIN_REGIONS_EDIT}" style="font-size:14px;background-color:white;border:1px solid black;" />
&nbsp;<input type="submit" name="del" value="{$smarty.const.LA_ADMIN_REGIONS_DEL}" style="font-size:14px;background-color:red;border:1px solid black;" />
</form>


{if $deleted}
	<p>{$smarty.const.LA_ADMIN_REGIONS_DELETED} {$deleted}</p>
{elseif $del}
	<p><b style='font-color:red'>{$smarty.const.LA_ADMIN_REGIONS_WARNING}</b><br />{$smarty.const.LA_ADMIN_REGIONS_CONFIRM}</p>
	<p><a href='?del={$del}&catid={$del}&confirm=1'><b>{$smarty.const.LA_ADMIN_REGIONS_CONFIRM_YES}</b></a>
{/if}

<p>&nbsp;</p>

{if $edit_region}
<p><b>{$smarty.const.LA_ADMIN_REGIONS_EDIT_REG}</b></p>
<form method="post" action="adm_regions.php">
<input type="hidden" name="edit_region" value="{$edit_region}" />

{$smarty.const.LA_ADMIN_REGIONS_NAME}:<br />
<input type="text" value="{$edit_region_name}" id="edit_region_name" name="edit_region_name" style="height:18px;font-size:14px;" />

<br /><br />
{$smarty.const.LA_ADMIN_REGIONS_ISBELOW}:<br />
<select name="edit_region_catid" style="height:22px;font-size:13px;"><option value="0">---</option>{$options}</select><br />

<br />
{$smarty.const.LA_ADMIN_REGIONS_WEIGTH}:<br />
<input type="text" value="{$edit_region_pri}" id="edit_region_pri" size="5" name="edit_region_pri" style="height:18px;font-size:14px;" />


<br /><br />
<input type="submit" name="edit_change" value="{$smarty.const.LA_ADMIN_REGIONS_SAVE}" style="font-size:14px;background-color:white;border:1px solid black;" />

{/if}
</form>

<p>&nbsp;</p>

<p><b>{$smarty.const.LA_ADMIN_REGIONS_IMPORT}</b></p>
<p class="bg">{$smarty.const.LA_ADMIN_REGIONS_NOTES}</p>


	<br />{$smarty.const.LA_ADMIN_REGIONS_NOTES_MORE}</p>

<form enctype="multipart/form-data" action="adm_regions.php" method="POST">
<input type="hidden" name="MAX_FILE_SIZE" value="1000000" />
{$smarty.const.LA_ADMIN_REGIONS_TEXTFILE}: <input name="userfile" type="file" /><br />
<input type="submit"  name="import" value="{$smarty.const.LA_ADMIN_REGIONS_DO_IMPORT}" />



{literal}
<script language="javascript">
document.new_region_form.region_name.focus();
</script>
{/literal}